//
//  ShangJiaViewItem.m
//  lover-go-ios-beta
//
//  Created by liudonghuan on 14-8-29.
//  Copyright (c) 2014年 liudonghuan. All rights reserved.
//

#import "ImageLabelViewItem.h"

@implementation ImageLabelViewItem

-(id)initWithFrame:(CGRect)frame Flag:(int)flag
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        _itemimage = [[UIImageView alloc]initWithFrame:CGRectMake(12, 10, 16, 16)];
        _itemtext = [[UILabel alloc]initWithFrame:CGRectMake(45,0, 250, 40)];
        _itemtext.font = [UIFont fontWithName:@"Helvetica" size:15];
        if (flag == 0) {
            UIImageView *flagicon = [[UIImageView alloc]initWithFrame:CGRectMake(300, 10, 10, 20)];
            //右键小图标
            flagicon.image = [UIImage imageNamed:@"btn_next.png"];
            [self addSubview:flagicon];
        }
        [self addSubview:_itemimage];
        [self addSubview:_itemtext];
    }
    return self;
}



@end
